﻿@using FikriKibar.Common.Enums
@using FikriKibar.Common.Helpers
@using FikriKibar.Globalization
@using FikriKibar.Entities.Composite.UserModels
@model DetailModel

@{
    ViewBag.Title =Resources.MyAccount;
    Layout = "~/Views/Shared/ContentLayout.cshtml";
}

<div class="container-fluid">
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header">@Resources.MyAccount</h1>
        </div>
    </div>
    <div class="row">

        <div class="col-lg-12">
            <div class="panel panel-default">
                <div class="panel-heading">
                    @Resources.MyAccount
                </div>
                <div class="panel-body">
                    <div class="row">
                        <div class="col-lg-8">
                            <div class="well" id="user-page-well">
                                <div class="media">
                                    <div class="media-left">
                                        <img class="img-responsive img-thumbnail" id="user-profile-img" src="/UserFiles/@Model.User.Email.ToMd5()/Images/user-profile.png" alt="@Model.User.FullName">
                                    </div>
                                    <div class="media-body">
                                        <h4 class="media-heading">@Resources.Welcome</h4>
                                        <p>@Model.User.FullName,</p>
                                        <p>@Resources.WelcomeText</p>
                                        <p>
                                            <a href="@Url.Action("UpdateMyInformation", "User")" class=" btn btn-primary btn-sm"><i class="glyphicon glyphicon-user"></i>&nbsp;@Resources.UpdateMyInformation</a>
                                            <a href="@Url.Action("UpdateMyPassword", "User")" class=" btn btn-primary btn-sm"><i class="glyphicon glyphicon-lock"></i>&nbsp;@Resources.UpdateMyPassword</a>
                                            <a href="#" data-confirm-href="@Url.Action("Logout", "User", new { logoutOptions = LogoutOptions.ValidLogut })" class="btn btn-primary btn-sm logout-link" data-confirm-title="@Resources.AreYouSure" data-confirm-message="@Resources.AreYouSureLogout" data-confirm-ok="@Resources.Yes" data-confirm-cancel="@Resources.No"><i class="glyphicon glyphicon-log-out"></i>&nbsp;@Resources.Logout</a>
                                        </p>
                                    </div>
                                </div>
                            </div>

                        </div>
                        <div class="col-lg-4">
                            @Html.Action("UserSidebar", "User")
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
